package com.errands.cn.utils;

public enum States {
    REQUEST_ERROR_CONDITION01("REQUEST_ERROR_CONDITION01","参数为空，参数没有正确填写"),
    REQUEST_ERROR_CONDITION02("REQUEST_ERROR_CONDITION02","参数格式不正确，参数没有正确填写"),
    REQUEST_ACCESS("REQUEST_ACCESS","请求成功，正确获取数据"),
    REQUEST_ERROR_NOLOGIN("REQUEST_ERROR_NOLOGIN","用户未登录不能完成该操作"),
    REQUEST_ERROR_UPLOAD_IMG("REQUEST_ERROR_UPLOAD_IMG","网络原因，图片上传失败"),
    REQUEST_ERROR_UPLOAD_PDF("REQUEST_ERROR_UPLOAD_PDF","网络原因，PDF上传失败"),
    REQUEST_UPDATE_SUCCESS("REQUEST_UPDATE_SUCCESS","更新数据成功"),
    REQUEST_UPDATE_FILED("REQUEST_UPDATE_FILED","更新数据失败"),
    REQUEST_DEL_SUCCESS("REQUEST_DEL_SUCCESS","更新数据成功"),
    REQUEST_DEL_FILED("REQUEST_DEL_FILED","更新数据失败");
    private String code;

    private String msg;

    private States(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
